package com.onesports.intelligent.k12.polarlight.mapper.market;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.onesports.intelligent.k12.polarlight.annotation.DataPermission;
import com.onesports.intelligent.k12.polarlight.domain.dto.market.OrdersSettlementQueryDTO;
import com.onesports.intelligent.k12.polarlight.domain.dto.market.SettlementOrderSelectDTO;
import com.onesports.intelligent.k12.polarlight.domain.vo.market.OrdersSettlementVO;
import com.onesports.intelligent.k12.polarlight.domain.vo.market.SettlementOrderSelectVO;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.onesports.intelligent.k12.polarlight.domain.entity.market.OrdersSettlement;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单结算
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Mapper
public interface OrdersSettlementMapper extends BaseMapper<OrdersSettlement> {

    @DataPermission
    IPage<OrdersSettlementVO> page(Page pager,@Param("params") OrdersSettlementQueryDTO dto);

    @DataPermission
    OrdersSettlementVO settlementSum(@Param("params") OrdersSettlementQueryDTO dto);

    @DataPermission
    IPage<SettlementOrderSelectVO> querySettlementOrderPage(Page pager,@Param("params") SettlementOrderSelectDTO dto);


    @DataPermission
    SettlementOrderSelectVO querySettlementOrderSum(@Param("params") SettlementOrderSelectDTO dto);

    @DataPermission
    List<SettlementOrderSelectVO> querySettlementOrderPage(@Param("params") SettlementOrderSelectDTO dto);


}
